import request from '@/utils/request'

// 提交请假
export const addLeave = data => {
  return request({
    url: '/leave/addLeave',
    method: 'post',
    data
  })
}

// 审批
export const updateLeave = data => {
  return request({
    url: '/leave/updateLeave',
    method: 'put',
    data
  })
}

// 请假信息获取
export const getLeave = params => {
  return request({
    url: '/leave/getLeave',
    method: 'get',
    params
  })
}
